<!DOCTYPE html>
<html xmlns="http://www.w3c.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui" xmlns:pt="http://xmlns.jcp.org/jsf/passthrough" xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:decorate id="msrpDecoration" template="/resources/template/template-crud.xhtml">

  <ui:param name="title" value="Perfil de acesso" />

  <ui:param name="managedBean" value="#{perfilBean}" />

  <ui:define name="botaoTopCadastro">

  </ui:define>

  <ui:define name="botaoTopExclusao">

  </ui:define>

  <ui:define name="parametroConsulta">

  </ui:define>

  <ui:define name="tabelaDados">

    <p:column headerText="Codigo">
      <h:outputText styleClass="fonte" value="#{beanEnt.id}" />
    </p:column>
    <p:column headerText="Nome">
      <h:outputText styleClass="fonte" value="#{beanEnt.nome}" />
    </p:column>

  </ui:define>

  <ui:define name="formCadastro">

    <h:panelGrid columns="2" columnClasses="colunas">
      <h:outputLabel styleClass="fonte" value="Nome" />
      <h:inputText value="#{perfilBean.entity.nome}" required="true" requiredMessage="Nome é requerido." />
      
      <h:outputLabel for="operacoes" value="Ações:" />
		<h:selectManyCheckbox id="operacoes" value="#{perfilBean.lstProfileActionSelected}" 
			layout="pageDirection" converter="enumProfileActionConverter" >
          <f:selectItems value="#{perfilBean.lstOperacoes}" var="op" itemLabel="#{op}" itemValue="#{op}" />  
    	</h:selectManyCheckbox>
    </h:panelGrid>
    
    
  </ui:define>

  <ui:define name="formExclusao">

  </ui:define>

</ui:decorate>

</html>